generator_name = "grass_and_earth"
asset_img_path = "asset/grass_and_earth"
img_dic = \
    {
        # 0
        '24_00': {'tags': (1, 1, 1, 1), 'weight': 5},
        '24_01': {'tags': (1, 1, 1, 1), 'weight': 5},
        '26_01': {'tags': (1, 1, 1, 1), 'weight': 5},
        '27_13': {'tags': (1, 1, 1, 1), 'weight': 0.1},
        '27_19': {'tags': (1, 1, 1, 1), 'weight': 0.1},

        # 1
        '26_11': {'tags': (11, 11, 11, 11), 'weight': 3},
        '27_09': {'tags': (11, 11, 11, 11), 'weight': 3},
        '27_03': {'tags': (11, 11, 11, 11), 'weight': 0.1},

        #2
        '25_01': {'tags': (11, 1, 6, 5), 'weight': 0.5},
        '26_00': {'tags': (5, 6, 11, 1), 'weight': 0.5},
        '26_01': {'tags': (6, 5, 1, 11), 'weight': 0.5},
        '27_01': {'tags': (1, 11, 5, 6), 'weight': 0.5},

        #3
        '25_03': {'tags': (1, 2, 1, 3), 'weight': 5},
        '25_04': {'tags': (1, 3, 2, 1), 'weight': 5},
        '26_03': {'tags': (3, 1, 1, 2), 'weight': 5},
        '26_04': {'tags': (2, 1, 3, 1), 'weight': 5},

        #4!
        '25_00': {'tags': (11, 6, 11, 5), 'weight': 0.05},
        '25_02': {'tags': (11, 5, 6, 11), 'weight': 0.05},
        '27_02': {'tags': (6, 11, 5, 11), 'weight': 0.05},
        '27_00': {'tags': (5, 11, 11, 6), 'weight': 0.05},
        #5
        '25_05': {'tags': (11, 8, 11, 9), 'weight': 0.5},
        '25_06': {'tags': (11, 9, 8, 11), 'weight': 0.5},
        '26_05': {'tags': (9, 11, 11, 8), 'weight': 0.5},
        '26_06': {'tags': (8, 11, 9, 11), 'weight': 0.5},
        #6
        '25_07': {'tags': (9, 8, 11, 4), 'weight': 0.2},
        '25_08': {'tags': (8, 9, 4, 11), 'weight': 0.2},
        '26_08': {'tags': (11, 4, 8, 9), 'weight': 0.2},
        '26_07': {'tags': (4, 11, 9, 8), 'weight': 0.2},
        #7!
        '25_09': {'tags': (7, 7, 11, 11), 'weight': 0.1},
        '26_09': {'tags': (11, 11, 7, 7), 'weight': 0.1},
        #8
        '25_10': {'tags': (1, 16, 1, 15), 'weight': 0.2},
        '25_12': {'tags': (1, 15, 16, 1), 'weight': 0.2},
        '27_10': {'tags': (15, 1, 1, 16), 'weight': 0.2},
        '27_12': {'tags': (16, 1, 15, 1), 'weight': 0.2},
        #9
        '25_13': {'tags': (11, 12, 11, 13), 'weight': 0.2},
        '25_14': {'tags': (11, 13, 12, 11), 'weight': 0.2},
        '26_13': {'tags': (13, 11, 11, 12), 'weight': 0.2},
        '26_14': {'tags': (12, 11, 13, 11), 'weight': 0.2},
        #10
        '25_11': {'tags': (1, 11, 16, 15), 'weight': 0.4},
        '26_10': {'tags': (15, 16, 1, 11), 'weight': 0.4},
        '26_12': {'tags': (16, 15, 11, 1), 'weight': 0.4},
        '27_11': {'tags': (11, 1, 15, 16), 'weight': 0.4},
        #11
        '25_15': {'tags': (1, 18, 1, 19), 'weight': 0.2},
        '25_16': {'tags': (1, 19, 18, 1), 'weight': 0.2},
        '26_15': {'tags': (19, 1, 1, 18), 'weight': 0.2},
        '26_16': {'tags': (18, 1, 19, 1), 'weight': 0.2},
        #12
        '25_17': {'tags': (19, 18, 1, 14), 'weight': 0.1},
        '25_18': {'tags': (18, 19, 14, 1), 'weight': 0.1},
        '26_17': {'tags': (14, 1, 19, 18), 'weight': 0.1},
        '26_18': {'tags': (1, 14, 18, 19), 'weight': 0.1},
        #13
        '25_19': {'tags': (17, 17, 1, 1), 'weight': 0.1},
        '26_19': {'tags': (1, 1, 17, 17), 'weight': 0.1},
        #14
        '27_04': {'tags': (4, 4, 4, 4), 'weight': 0.1},
        #15
        '27_14': {'tags': (14, 14, 14, 14), 'weight': 0.1},
        #16
        '27_05': {'tags': (11, 7, 11, 11), 'weight': 0.1},
        '27_06': {'tags': (11, 11, 7, 11), 'weight': 0.1},
        '27_07': {'tags': (7, 11, 11, 11), 'weight': 0.1},
        '27_08': {'tags': (11, 11, 11, 7), 'weight': 0.1},
        # #17
        '27_15': {'tags': (1, 17, 1, 1), 'weight': 0.1},
        '27_16': {'tags': (1, 1, 17, 1), 'weight': 0.1},
        '27_17': {'tags': (17, 1, 1, 1), 'weight': 0.1},
        '27_18': {'tags': (1, 1, 1, 17), 'weight': 0.1}
    }

tag_connect_dict = \
    {
        1: {1},
        2: {3},
        3: {2},
        4: {4},
        5: {6},
        6: {5},
        7: {7},
        8: {9},
        9: {8},

        11: {11},
        12: {13},
        13: {12},
        14: {14},
        15: {16},
        16: {15},
        17: {17},
        18: {19},
        19: {18}

    }

img_size = (16, 16)